package com.qf.spring.advice;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @author 王博康
 * @version 1.0
 * @project 02_spring
 * @description: TODO
 * @date 2022/3/5 11:03 星期六
 */
public class MyMethodBeforeAdvice implements MethodBeforeAdvice {
    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.err.println("开启事务");
    }
}
